/// 排行榜用户模型
class RankingUserModel {
  final String id;
  final String name;
  final String avatar;
  final int score;
  final int rank;

  RankingUserModel({
    required this.id,
    required this.name,
    required this.avatar,
    required this.score,
    required this.rank,
  });

  RankingUserModel copyWith({
    String? id,
    String? name,
    String? avatar,
    int? score,
    int? rank,
  }) {
    return RankingUserModel(
      id: id ?? this.id,
      name: name ?? this.name,
      avatar: avatar ?? this.avatar,
      score: score ?? this.score,
      rank: rank ?? this.rank,
    );
  }
}
